package iscas.delivery.controller;

import iscas.delivery.common.CustomResult;
import iscas.delivery.dto.DeliveryDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/delivery")
public class DeliveryController {
    // 配送
    @PostMapping("/toDelivery")
    public CustomResult toDelivery(@RequestBody DeliveryDTO deliveryDTO) {
        return new CustomResult(20000, "配送成功", deliveryDTO);
    }
}
